/* 卡片样式 */
.card {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1rem 1.25rem;
}

.card-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 0;
  display: flex;
  align-items: center;
}

.card-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background-color: #28a745;
  margin-right: 0.75rem;
  border-radius: 2px;
}

.card-body {
  padding: 1.25rem;
}

.card-footer {
  background-color: #f8f9fa;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1rem 1.25rem;
}

/* 模态框样式 */
.modal {
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-backdrop {
  z-index: 1040;
}

.modal.show {
  display: block;
  z-index: 1050;
}

.modal-content {
  border-radius: 8px;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.modal-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background-color: #f8f9fa;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  padding: 1rem 1.5rem;
}

.modal-title {
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
}

.modal-title i {
  margin-right: 0.5rem;
  color: #28a745;
}

.modal-body {
  padding: 1.5rem;
  max-height: 75vh;
  overflow-y: auto;
}

.modal-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding: 1rem 1.5rem;
  justify-content: space-between;
}

.modal-footer::before,
.modal-footer::after {
  display: none;
}

/* 表格样式 */
.table {
  margin-bottom: 0;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #495057;
  padding: 0.85rem 0.75rem;
  vertical-align: middle;
  border-bottom: 2px solid #e9ecef;
  font-size: 0.9rem;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

.table td {
  padding: 0.85rem 0.75rem;
  vertical-align: middle;
  font-size: 0.9rem;
  color: #212529;
  border-top: 1px solid #e9ecef;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.02);
}

.table-hover tbody tr:hover {
  background-color: rgba(40, 167, 69, 0.05);
  transition: all 0.2s;
}

/* 按钮样式 */
.btn {
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: #28a745;
  border-color: #28a745;
}

.btn-primary:hover {
  background-color: #218838;
  border-color: #1e7e34;
}

.btn-outline-primary {
  color: #28a745;
  border-color: #28a745;
}

.btn-outline-primary:hover {
  background-color: #28a745;
  color: #fff;
}

.btn-outline-success {
  color: #28a745;
  border-color: #28a745;
}

.btn-outline-success:hover {
  background-color: #28a745;
  color: #fff;
}

.btn-outline-danger {
  color: #dc3545;
  border-color: #dc3545;
}

.btn-outline-danger:hover {
  background-color: #dc3545;
  color: #fff;
}

/* 分页信息样式 */
.pagination-info {
  padding-top: 0.5rem;
  font-size: 0.85rem;
  color: #6c757d;
  line-height: 31px;
}

/* 分页组件样式 */
.pagination {
  margin-bottom: 0;
}

.page-item .page-link {
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
  color: #28a745;
  border-color: #dee2e6;
}

.page-item.active .page-link {
  background-color: #28a745;
  border-color: #28a745;
}

.page-item.disabled .page-link {
  color: #6c757d;
  pointer-events: none;
  background-color: #fff;
  border-color: #dee2e6;
}

/* 搜索区域样式 */
.search-section {
  background-color: #f9fafb;
  padding: 1.25rem;
}

.search-group {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.search-group .input-group-text {
  border-radius: 4px 0 0 4px;
  border-color: #efefef;
}

.search-group .form-control {
  border-color: #efefef;
}

.search-group .form-control:focus {
  box-shadow: none;
  border-color: #efefef;
}

.search-group .btn {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* 加载状态样式 */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

/* 表单验证错误样式 */
.text-danger {
  font-size: 0.8rem;
  margin-top: 0.25rem;
  color: #dc3545;
}

/* 表单样式增强 */
.form-label {
  font-weight: 500;
  color: #495057;
  margin-bottom: 0.5rem;
}

.form-control {
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  border: 1px solid #ced4da;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.15);
  border-color: #86d09c;
}

.form-select {
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  border: 1px solid #ced4da;
}

/* 复选框样式 */
.form-check-input {
  width: 1.1em;
  height: 1.1em;
  margin-top: 0.15em;
  cursor: pointer;
}

.form-check-input:checked {
  background-color: #28a745;
  border-color: #28a745;
}

/* 操作按钮样式 */
.action-buttons {
  white-space: nowrap;
}

.action-buttons .btn {
  padding: 0.375rem 0.5rem;
  transition: all 0.2s;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .table-responsive {
    max-height: 400px;
  }
  
  .table th, .table td {
    white-space: nowrap;
  }
}

/* 徽章样式 */
.badge {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.35em 0.65em;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.badge.bg-success {
  background-color: #28a745 !important;
  box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
} 